<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="pageContent">
	<form method="post" action="${rootUrl}/seller/user-seller/${userSeller.id}" class="pageForm required-validate" onsubmit="return beforeSubmit(this);">
		 <c:if test="${userSeller.id != 0 && userSeller.id != '' }"><input type="hidden" name="_method" value="put"></c:if>
		<input type="hidden" name="id" value="${userSeller.id}">
		<input type="hidden" name="sellerId" value="${seller.id}">
		<div class="pageFormContent" layoutH="56">
			
			<p>
				<label>商家名称：</label>
				<input type="text" name="seller.name" readonly="readonly" size="30" value="${seller.name}"/>
				<input type="hidden" name="userSeller.seller.id" readonly="readonly" size="30" value="${userSeller.seller.id}"/>
			
			</p>
			<p>
				<label>用户名称：</label>
				<input type="hidden" id= "user.id" name="user.id" value="${userSeller.userId }">
				<input type="text"  name="user.name"  size="30" value="${userName }" />
             <a class="btnLook" href="${rootUrl}/system/user/1/dialog" lookupGroup="user"></a>
			</p>
			
   		 </div>
    	<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button id="theSubmit" type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
    </form>
   </div>
<script>
	function beforeSubmit(obj){
		$("#user.id").attr("name","userSeller.userId");
		return validateCallback(obj, newDialogAjaxDone);
	}
</script>